#!/bin/sh
################################################################################
# housekeep
################################################################################
. /etc/rc.d/functions

start() {
    /usr/bin/logger -s -t minimyth -p "local0.info" "[init.d/housekeep] Starting..."

    /bin/sleep 10
    cp /etc/conf.d/minimyth /var/log/settings

    /usr/bin/logger -s -t minimyth -p "local0.info" "[init.d/housekeep] Gathering system-info..."
    /usr/bin/mm_getsysinfo

    /usr/bin/logger -s -t minimyth -p "local0.info" "[init.d/housekeep] Started with return code=0..."

    return 0
}

stop() {
    mm_message_output info "stopping housekeep ..."

    return 0
}

case $1 in
    start) start ;;
    stop)  stop  ;;
esac

exit 0
